@extends('bootstrap-modal-layout')

@if($script_blade = 'category/create' )@endif

@section('title') 添加新分类 @endsection
@section('body')
    <form action="{{ url('admin/category') }}" method="post" class="form-horizontal" id="ajaxForm">
        {!! csrf_field() !!}
        <div class="row form-group">
            <label for="parent_id" class="col-md-2 control-label">上级分类</label>
            <div class="col-md-8 controls">
                <select class="form-control" name="" id="">
                    <option value="">作为主分类</option>
                    <option value="1">游戏</option>
                </select>
            </div>
        </div>
        <div class="row form-group">
            <label for="title" class="col-md-2 control-label">分类名称</label>
            <div class="col-md-8 controls">
                <input type="text" name="title" id="title" class="form-control" placeholder="中文名称"/>
            </div>
        </div>
        <div class="row form-group">
            <label for="name" class="col-md-2 control-label">分类编码</label>
            <div class="col-md-8 controls">
                <input type="text" name="name" id="name" class="form-control" placeholder="英文名称"/>
            </div>
        </div>
        <div class="row form-group">
            <label for="sort" class="col-md-2 control-label">排序</label>
            <div class="col-md-5 controls">
                <input type="text" name="sort" id="sort" class="form-control" value="0" />
            </div>
        </div>
        @include('submit-btn')
    </form>
@endsection
